﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKRevitBase.Math;

namespace YJKRevitStairs.StairsModel.AddSigns
{
	internal class ViewPlanComparer : IComparer<ViewPlan>
	{
		public int Compare(ViewPlan plan1, ViewPlan plan2)
		{
			if (MathUtility.GreaterThan(plan1.GenLevel.Elevation, plan2.GenLevel.Elevation, 1E-06))
			{
				return 1;
			}
			return -1;
		}
	}
}
